package com.designPattern.foctory.factory;

/**
 * 子类工程中去实现创建对象的方法
 * @author mxs
 */
public class GoodInstanceFactory  {//extends InstanceFactory
//    @Override
//    public Instance createInstance(String instanceType) {
//        Instance instance = null;
//        if (instanceType.equals(GoodInstance.class.getName())){
//            instance = new GoodInstance();
//        }else if (instanceType.equals(GreatInstance.class.getName())){
//            instance = new GreatInstance();
//        }return instance;
//    }
}
